#include<bits/stdc++.h>
using namespace std;
int n,a[100000],ans;


int main(){

freopen(" duel.in","r",stdin);
freopen(" duel.out","w",stdout);

cin>>n;
for(int i=1;i<=n;i++){
    cin>>a[i];
}
for(int i=1;i<=n;i++){
    for(int j=i+1;j<=n;j++){
    if(a[i]>a[j]){
    swap(a[i],a[j]);
}}}
for(int i=1;i<=n;i++){
    for(int j=i+1;j<=n;j++){
    if(a[j]==a[i]){
        i++;
        }
    if(a[j]>a[i]){
        ++ans;
        i++;
}
}}
cout<<n-ans;
fclose(stdin);
fclose(stdout);
return 0;
}
